package com.ssww.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ssww.entity.Banner;
import com.ssww.service.BannerService;

@Controller
@RequestMapping("/activity")
public class ActivityController implements SswwUrlController {
	@Resource
	private BannerService bannerService;

	@RequestMapping(params = "method=ssww2")
	public String ssww(HttpServletRequest request, ModelMap modelMap) {
		Banner banner = new Banner();
		banner.setHfDetail("cvsker");
		banner.setHfLink("http://www.aicai.com");
		banner.setHfName("new style");
		banner.setHfPicUrl("dsda");
		bannerService.addBanner(banner);

		return INDEX;
	}

}
